package com.hnucm.cooklife.model;

import com.hnucm.cooklife.base.BaseModel;
import com.hnucm.cooklife.bean.me.LoginData;
import com.hnucm.cooklife.contract.login.Contract;

import io.reactivex.Observable;

public class LoginModel extends BaseModel implements Contract.ILoginModel {
    public LoginModel() {
        setCookies(true);
    }

    @Override
    public Observable<LoginData> login(String username, String password) {
        return mApiServer.login(username,password);
    }
}
